<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title><!--{$config.site_title}--></title>
    <meta name="keywords" content="<!--{$config.site_keywords}-->">
    <meta name="description" content="<!--{$config.site_description}-->">
    <meta name="author" content="MFS">
    <link rel="icon" href="<!--{$config.site_favicon}-->" type="image/x-icon" />
    <meta content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <link href="/static/home/web3/css/plugins.css" media="all" rel="stylesheet" type="text/css">
    <link href="/static/home/web3/css/style.css" media="all" rel="stylesheet" type="text/css">
    <link href="/static/home/web3/css/css.css" rel="stylesheet" type="text/css">
    <style type="text/css">
        @media only screen and (max-width: 768px) {
            <!--{foreach item=item key=key from=$menu}-->
            .fullpage__menu__item:nth-child(<!--{$key+1}-->) {
                -webkit-transform: translateY(<!--{$key*100}-->%);
                transform: translateY(<!--{$key*100}-->%);
            }
            <!--{/foreach}-->
        }
    </style>
</head>

<body>
        <script src="/static/home/web3/js/console-ban.min.js"></script>
            <!-- 顶部导航栏 start -->
            <!--{include file='./file/header.html'}-->
            <!-- 顶部导航栏 end -->
        <div id="fullpage">
            <!-- 单页 start -->
            <!--{include file='./file/single.html'}-->
            <!-- 单页 end -->
        </div>
        <script src="/static/home/web3/js/plugins.js"></script>
        <script src="/static/home/web3/js/mrex.js"></script>
        <script type="text/javascript">
            $("#fullpage").fullpage({
                // anchors: ["home", "about", "launch", "contact"],
                anchors: [<!--{foreach item=item key=key from=$menu}-->"<!--{$item.acode}-->",<!--{/foreach}-->],
                menu: "#fullpage__menu",
                navigation: true,
                navigationPosition: "right",
                // navigationTooltips: ["Home", "About", "Launch", "Contact"],
                navigationTooltips: [<!--{foreach item=item key=key from=$menu}-->"<!--{$item.acode}-->",<!--{/foreach}-->],
                responsiveWidth: 1024,
                autoScrolling: true,
                scrollBar: false,
                css3: true,
                verticalCentered: true,
                onLeave: function(index, nextIndex, direction) {
                    var idx = Math.abs(index - nextIndex) * 0.1;
                    $.fn.fullpage.setScrollingSpeed(idx * 12000);
                    change(index, direction);
                },
                afterResponsive: function(isResponsive) {}
            });
            // 5.1. fullPage direction
            function change(index, direction) {
                if (direction == "down") {
                    $(".section" + index).removeClass("active");
                    $(".section" + (index + 1)).addClass("active");
                    $(".introduction").removeClass("introduction-on").addClass("introduction-off");
                } else if (direction == "up") {
                    $(".section" + index).removeClass("active");
                    $(".section" + (index - 1)).addClass("active");
                    $(".introduction").removeClass("introduction-off").addClass("introduction-on");
                }
            }
            // 5.2. fullPage toggle active
            $("#fullpage__menu").on("click", function() {
                $(this).toggleClass("is-active");
                $("#fullpage").toggleClass("menu-is-active")
            });
            $('#language').change(function(){
                $.post('/admin/login/setlanguage/',{'lang':$('#language').val()}, function(data) {
                    if(data.code==200){
                        location.reload();
                    }else{
                        toast(data.msg,3)
                    }
                })
            });
        </script>
</body>

</html>